﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace WebFormInfoAspx
{
    public partial class GetInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {


        }

        protected void ButtonGetInfo_Click(object sender, EventArgs e)
        {
            string webBrowserType = Request.Browser.Type;
            string ip = Request.ServerVariables["remote_host"];

            Literal.Text += "<br />"+ "Browser: " + webBrowserType + "<br />";
            Literal.Text += ip;
        }
    }
}